<?php
/*
 * Created on Sep 11, 2010
 *
 * To change the template for this generated file go to
 * Window - Preferences - PHPeclipse - PHP - Code Templates
 */
 
require_once '/var/www/system/library/propel/runtime/lib/Propel.php';

Propel::init("/var/www/application/models/build/conf/blog-conf.php");

set_include_path("/var/www/application/models/build/classes" . PATH_SEPARATOR . get_include_path());
 
 class PostModel {
 	function getAll() { 
 		return PostQuery::create()->find();
 	}
 	
 	function add($title, $content) {
		$post = new Post();
		$post->setTitle($title);
		$post->setBody($content);
		$post->save();
 	}
 }
 
?>
